# list=[1,2,3,4,5]
# print(list)
# print(list[:3])
# print(list[2:])
# print(list[2::2])

# list_fruit = ['apple','banana','pear']
# print(list_fruit)
# print(list_fruit.index('apple'))
# print(list_fruit.index('banana'))
# print(list_fruit.index('pear'))

# print('-'*20)
# list_people = ['刘备','关羽','张飞','关羽','赵四','张飞','张飞']
# print(list_people.count('张飞'))
# print('-'*20)

# print('-'*20)
list_people = ['刘备','关羽','张飞','赵四','张三','李四']

print('刘备' in list_people)
print('关' in list_people)
